package com.lh.java.basic.grammer;

import java.util.ArrayList;
import java.util.List;

public class ForGeneric {
          public static void main(String[] args) {
        	  PrintFor pf = new PrintFor();
        	  List<String> list = new ArrayList<String>();
        	  list.add("ha1");
        	  list.add("ha2");
        	  pf.TestGen0Medthod1(list);
        	  System.out.println(Number.class.getSuperclass());
		}
}

class PrintFor {
	void TestGen0Medthod1(List<String> l) {
		for (Object o : l)
			System.out.println(o);
	}

}


